package com.supersoft.framework.common.helper;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Jinzhe on 2016/8/9.
 */
public class ResponseMessage implements Serializable {

    @Setter
    @Getter
    private int code;
    @Setter
    @Getter
    private String message;

    private ResponseMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public final static ResponseMessage SUCCESS = new ResponseMessage(200, "操作成功");
    public final static ResponseMessage ERROR = new ResponseMessage(500, "系统错误");

}
